import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/content/home/Home'
import Boshi from '@/components/content/boshi/Boshi'
import Shop from '@/components/content/Shop'
import Morenews from '@/components/content/home/Morenews'
import MoreOrgan from '@/components/content/home/MoreOrgan'
import MeNav from '@/components/content/home/MeNav'
import Mechanism from '@/components/content/home/Mechanism'
import MePhoto from '@/components/content/home/MePhoto'
import JiActive from '@/components/content/home/JiActive'
import ActiCont from '@/components/content/home/ActiCont'
import ZiShow from '@/components/content/home/ZiShow'
import MeVideo from '@/components/content/home/MeVideo'
import MorePerson from '@/components/content/home/MorePerson'
import Search from '@/components/content/search/Search'
import Searchhistory from '@/components/content/search/Searchhistory'
import SearchDetail from '@/components/content/search/SearchDetail'

import Synthesize from '@/components/content/search/Synthesize'
import Ball from '@/components/content/search/Ball'
import Course from '@/components/content/search/Course'
import SearchVideo from '@/components/content/search/SearchVideo'
import Organization from '@/components/content/search/Organization'
import Expert from '@/components/content/search/Expert'

import Detail from '@/components/content/home/Detail'
import Active from '@/components/content/active/Active'
import Activity from '@/components/content/active/Activity'
import Activedetail from '@/components/content/active/Activedetail'
import Active2 from '@/components/content/active/Active2'
import GreatVideo from '@/components/content/active/GreatVideo'
import SplendidMoment from '@/components/content/active/SplendidMoment'
import PastWonderful from '@/components/content/active/PastWonderful'
import Photo from '@/components/content/active/Photo'
import Video from '@/components/content/active/Video'
import Dynamic from '@/components/content/active/Dynamic'
import Vote from '@/components/content/active/Vote'
import Votecount1 from '@/components/content/active/Votecount1'
import Votecount2 from '@/components/content/active/Votecount2'
import Votecount3 from '@/components/content/active/Votecount3'
import Recommend from '@/components/content/active/Recommend'
import Showout from '@/components/content/active/Showout'
import Ranking from '@/components/content/active/Ranking'
import Voting from '@/components/content/active/Voting'
import Apply from '@/components/content/active/Apply'
import Applysucess from '@/components/content/active/Applysucess'
import Photo2 from '@/components/content/active/Photo2'
import Video2 from '@/components/content/active/Video2'
import Voteshow from '@/components/content/active/Voteshow'
import Rankshow from '@/components/content/active/Rankshow'
import Votesucess from '@/components/content/active/Votesucess'
import Manvote from '@/components/content/active/Manvote'
import VideoVote from '@/components/content/active/VideoVote'
import personal from '@/components/content/personal/index'
import HistoryV from '@/components/content/personal/HistoryV'
import Dlone from '@/components/content/personal/Dlone'
import Loke from '@/components/content/personal/Loke'
import Fensi from '@/components/content/personal/Fensi'
import Shoucang from '@/components/content/personal/Shoucang'
import HouDong from '@/components/content/personal/HouDong'
import GengduoHuo from '@/components/content/personal/GengduoHuo'
import Siting from '@/components/content/personal/Siting'
import Information from '@/components/content/personal/Information'
import Register from '@/components/content/personal/Register'
import myVersions from '@/components/content/myVersions/index'
import myLogin from '@/components/content/myLogin/index'
import myInfo from '@/components/content/myInfo/index'
import myData from '@/components/content/myData/index'
import SetName from '@/components/content/myData/SetName'
import mySignature from '@/components/content/mySignature/index'
import mySetPhone from '@/components/content/mySetPhone/index'
import myPhones from '@/components/content/myPhones/index'
import myAbout from '@/components/content/myAbout/index'
import myidea from '@/components/content/myidea/index'
import myMessage from '@/components/content/myMessage/index'
import News from '@/components/content/myMessage/News'
import Inform from '@/components/content/myMessage/Inform'
import myPublishDynamic from '@/components/content/myPublishDynamic/index'
import myRealRadio from '@/components/content/myRealRadio/index'
import myRealOwn from '@/components/content/myRealOwn/index'
import myRealCompany from '@/components/content/myRealCompany/index'



Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/boshi',
      name: 'Boshi',
      component: Boshi
    },
    {
      path: '/shop',
      name: 'Shop',
      component: Shop
    },
    {
      path: '/morenews',
      name: 'Morenews',
      component: Morenews
    },
    {
      path: '/moreorgan',
      name: 'MoreOrgan',
      component: MoreOrgan
    },
    {
      path: '/menav',
      name: 'MeNav',
      component: MeNav
    },
    {
      path: '/mechanism',
      name: 'Mechanism',
      component: Mechanism
    },
    {
      path: '/mephoto',
      name: 'MePhoto',
      component: MePhoto
    },
    {
      path: '/jiactive',
      name: 'JiActive',
      component: JiActive
    },
    {
      path: '/acticont',
      name: 'ActiCont',
      component: ActiCont
    },
    {
      path: '/zishow',
      name: 'ZiShow',
      component: ZiShow
    },
    {
      path: '/mevideo',
      name: 'MeVideo',
      component: MeVideo
    },
    {
      path: '/moreperson',
      name: 'MorePerson',
      component: MorePerson
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    },
    {
      path: '/search',
      name: 'Search',
      component: Search,
      children:[
        {
          path: '/searchhistory',
          name: 'Searchhistory',
          component: Searchhistory
        },
        {
          path: '/searchdetail',
          name: 'SearchDetail',
          component: SearchDetail,
          children:[
            //综合
            {
              path: '/synthesize/:id',
              name: 'Synthesize',
              component: Synthesize
            },
            //舞会
            {
              path: '/ball/:id',
              name: 'Ball',
              component: Ball
            },
            //课程
            {
              path: '/course/:id',
              name: 'Course',
              component: Course
            },
            //视频
            {
              path: '/searchvideo/:id',
              name: 'SearchVideo',
              component: SearchVideo
            },
            //机构
            {
              path: '/organization/:id',
              name: 'Organization',
              component: Organization
            },
            //达人
            {
              path: '/expert/:id',
              name: 'Expert',
              component: Expert
            }
          ]
        }
      ]
    },
    {
      path: '/active',
      name: 'Active',
      component: Active
    },
    {
      path: '/activity',
      name: 'Activity',
      component: Activity
    },
    {
      path: '/greatvideo',
      name: 'GreatVideo',
      component: GreatVideo
    },
    {
      path: '/splendidmoment',
      name: 'SplendidMoment',
      component: SplendidMoment
    },
    {
      path: '/pastwonderful',
      name: 'PastWonderful',
      component: PastWonderful
    },
    {
      path: '/activedetail',
      name: 'Activedetail',
      component: Activedetail,
      children:[
        {
          path: '/active2/:id/:id2',
          name: 'Active2',
          component: Active2
        },
        {
          path: '/photo/:id/:id2',
          name: 'Photo',
          component: Photo
        },
        {
          path: '/video/:id/:id2',
          name: 'Video',
          component: Video
        },
        {
          path: '/dynamic/:id/:id2',
          name: 'Dynamic',
          component: Dynamic
        },
        {
          path: '/vote/:id',
          name: 'Vote',
          component: Vote,
          children:[
            {
              path: '/vote/:id/showout/:id2/:id3',
              name: 'Showout',
              component: Showout
            },
            {
              path: '/vote/:id/ranking/:id2/:id3',
              name: 'Ranking',
              component: Ranking
            },
            {
              path: '/vote/:id/voting/:id2/:id3',
              name: 'Voting',
              component: Voting
            },
            {
              path: '/vote/:id/voteshow/:id2/:id3',
              name: 'Voteshow',
              component: Voteshow
            },
            {
              path: '/vote/:id/rankshow/:id2/:id3',
              name: 'Rankshow',
              component: Rankshow
            }
          ]
        },
        {
          path: '/recommend/:id/:id2',
          name: 'Recommend',
          component: Recommend
        }
      ]
    },
    {
      path: '/apply/:id',
      name: 'Apply',
      component: Apply
    },
    {
      path: '/applysucess/:id/:id2',
      name: 'Applysucess',
      component: Applysucess
    },
    {
      path: '/photo2/:id/:id2',
      name: 'Photo2',
      component: Photo2
    },
    {
      path: '/video2/:id2/:id3',
      name: 'Video2',
      component: Video2
    },
    {
      path: '/votesucess/:id/:id2',
      name: 'Votesucess',
      component: Votesucess
    },
    {
      path: '/manvote/:id/:id2',
      name: 'Manvote',
      component: Manvote
    },
    {
      path: '/videovote/:id/:id2',
      name: 'VideoVote',
      component: VideoVote
    },
    {
      path: '/votecount1/:id',
      name: 'Votecount1',
      component: Votecount1
    },
    {
      path: '/votecount2/:id/:id2',
      name: 'Votecount2',
      component: Votecount2
    },
    {
      path: '/votecount3/:id/:id2/:id3',
      name: 'Votecount3',
      component: Votecount3
    },
    {
      path: '/personal',
      name: 'personal',
      component: personal
    },
    {
      path: '/historyv',
      name: 'HistoryV',
      component: HistoryV
    },
    {
      path: '/dlone',
      name: 'Dlone',
      component: Dlone
    },
    {
      path: '/loke',
      name: 'Loke',
      component: Loke
    },
    {
      path: '/fensi',
      name: 'Fensi',
      component: Fensi
    },
    {
      path: '/shoucang',
      name: 'Shoucang',
      component: Shoucang
    },
    {
      path: '/houdong',
      name: 'HouDong',
      component: HouDong
    },
    {
      path: '/gengduohuo',
      name: 'GengduoHuo',
      component: GengduoHuo
    },
    {
      path: '/siting',
      name: 'Siting',
      component: Siting
    },
    {
      path: '/information',
      name: 'Information',
      component: Information
    },
    {
      path: '/register',
      name: 'Register',
      component: Register
    },
    {
      path: '/myVersions',
      name: 'myVersions',
      component: myVersions
    },
    {
      path: '/myLogin',
      name: 'myLogin',
      component: myLogin
    },
    {
      path: '/myData',
      name: 'myData',
      component: myData
    },
    {
      path: '/setname',
      name: 'SetName',
      component: SetName
    },
    {
      path: '/myInfo',
      name: 'myInfo',
      component: myInfo
    },
    {
      path: '/mySignature',
      name: 'mySignature',
      component: mySignature
    },
    {
      path: '/mySetPhone',
      name: 'mySetPhone',
      component: mySetPhone
    },
    {
      path: '/myPhones',
      name: 'myPhones',
      component: myPhones
    },
    {
      path: '/myAbout',
      name: 'myAbout',
      component: myAbout
    },
    {
      path: "/myidea",
      name: "myidea",
      component: myidea,
    },
    {
      path: "/myMessage",
      name: "myMessage",
      component: myMessage,
      redirect:'/news',
      children:[
        {
          path: "/news",
          name: "News",
          component: News,
        },
        {
          path: "/inform",
          name: "Inform",
          component: Inform,
        }
      ]
    },
    {
      path: "/myPublishDynamic",
      name: "myPublishDynamic",
      component: myPublishDynamic
    },
    {
      path: "/myRealRadio",
      name: "myRealRadio",
      component: myRealRadio,
      // redirect:"/myRealCompany",
      // children:[
      //   {
      //     path: "/myRealOwn",
      //     name: "myRealOwn",
      //     component: myRealOwn,
      //   },
      //   {
      //     path: "/myRealCompany",
      //     name: "myRealCompany",
      //     component: myRealCompany,
      //   },
      // ]
    },
    {
      path: "/myRealOwn",
      name: "myRealOwn",
      component: myRealOwn,
    },
    {
      path: "/myRealCompany",
      name: "myRealCompany",
      component: myRealCompany,
    },
  ]
})
